
import VueSocketIO from 'vue-socket.io'
import { socketURL } from '@/env'

const Chat = {
  install (Vue, store) {
    Vue.use(new VueSocketIO({
      debug: true,
      connection: socketURL,
      vuex: {
        store,
        actionPrefix: 'SOCKET_',
        mutationPrefix: 'SOCKET_'
      },
      options: { } // Optional options
    }))
  }
}

export default Chat
